﻿<%@ Page Language="C#" MasterPageFile="~/Masters/Main.master" AutoEventWireup="true" CodeFile="Schedule.aspx.cs" Inherits="Pages_Info_Schedule" Title="Расписание" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	<div style="text-align: center;" runat="server" id="dvAdminWorkPlace">
		<a href='<%= ResolveUrl("~/Pages/Route.aspx") %>'>Перейти к заполнению расписания</a>
	</div>
	<asp:Repeater runat="server" ID="rptSchedule">
		<HeaderTemplate>
			<table style="margin: 10px auto;">
				<tr>
					<th style="width: 200px;">Маршрут</th>
					<th style="width: 100px;">Автобус</th>
					<th style="width: 70px;">Время</th>
					<th style="width: 120px;">Начало</th>
					<th style="width: 120px;">Конец</th>
					<th style="width: 200px;">Дни следования</th>
				</tr>
		</HeaderTemplate>
		<ItemTemplate>
				<tr>
					<td><%# Eval("Route_name") %></td>
					<td><%# Eval("Bus_name") %></td>
					<td><%# DS.ToShortStringTime(Eval("TripRule_Time")) %></td>
					<td><%# DS.ToShortStringDateTime(Eval("TripRule_StartDT")) %></td>
					<td><%# DS.ToShortStringDateTime(Eval("TripRule_EndDT")) %></td>
					<td><%# Eval("scheduleDay")%></td>
				</tr>
		</ItemTemplate>
		<FooterTemplate>
			</table>
		</FooterTemplate>
	</asp:Repeater>
</asp:Content>
